import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import 'assets/scss/common.scss';
import cus_axios from './cus_axios.js';

let server = window.localStorage.getItem('server') || window.remote_server || window.location.origin;
if(server) {
	Vue.prototype.$remote_server = server;
	Vue.prototype.$axios = cus_axios.create({
		baseURL: server
	});
	Vue.prototype.$axios_blob = cus_axios.create({
		responseType: 'blob',
		baseURL: server
	});
}else {
	ElementUI.Message.error('配置文件错误');
}
